package com.lgkj.bean.meitao;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2018/8/24 0024.
 */

public class CarGoodsBean {

    /**
     * code : 0
     * msg : 操作成功
     * data : [{"id":"5","uid":"396","goods_id":"1","goods_name":"足力健老人鞋","goods_model_id":"2","goods_price":"255.00","cover_id":"http://mdyt.lianguangtech.com/upload/picture/20180822/ef00428d6cf33e223637e44d0f17cb27.png","goods_num":"123","create_time":"2018-08-23 15:42:23","update_time":"2018-08-23 15:42:23","status":"1"}]
     * exe_time : 0.004132
     */

    private int code;
    private String msg;
    private String exe_time;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getExe_time() {
        return exe_time;
    }

    public void setExe_time(String exe_time) {
        this.exe_time = exe_time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        public boolean isAdd() {
            return isAdd;
        }

        public void setAdd(boolean add) {
            isAdd = add;
        }

        /**
         * id : 5
         * uid : 396
         * goods_id : 1
         * goods_name : 足力健老人鞋
         * goods_model_id : 2
         * goods_price : 255.00
         * cover_id : http://mdyt.lianguangtech.com/upload/picture/20180822/ef00428d6cf33e223637e44d0f17cb27.png
         * goods_num : 123
         * create_time : 2018-08-23 15:42:23
         * update_time : 2018-08-23 15:42:23
         * status : 1
         */
        private boolean isAdd;
        private String id;
        private String uid;
        private String goods_id;
        private String goods_name;
        private String goods_model_id;
        private double goods_price;
        private String cover_id;
        private int goods_num;
        private String create_time;
        private String update_time;
        private String status;
        private BigDecimal totalPrice = BigDecimal.ZERO;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getGoods_model_id() {
            return goods_model_id;
        }

        public void setGoods_model_id(String goods_model_id) {
            this.goods_model_id = goods_model_id;
        }

        public double getGoods_price() {
            return goods_price;
        }

        public void setGoods_price(double goods_price) {
            this.goods_price = goods_price;
        }

        public String getCover_id() {
            return cover_id;
        }

        public void setCover_id(String cover_id) {
            this.cover_id = cover_id;
        }

        public int getGoods_num() {
            return goods_num;
        }

        public void setGoods_num(int goods_num) {
            this.goods_num = goods_num;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public BigDecimal getTotalPrice() {
            return totalPrice;
        }

        public void setTotalPrice(BigDecimal totalPrice) {
            this.totalPrice = totalPrice;
        }

        @Override
        public String toString() {
            String car_id = "";
            if (!id.equals("-1")) {
                car_id = "shop_cart_id:" + id + ",";
            }
            return car_id + "goods_id:" + goods_id +
                    ",goods_model_id:" + goods_model_id +
                    ", goods_num:" + goods_num + "\n";
        }

        //http://mdyt.lianguangtech.com/api/order/payOrder?sid=35d74b9faa1550c010484802469748b1&access_token=5724b766737985f6b1fe812c15d5b9ee&address_id=9&total_price=0.01&order_info=id:30,%20uid:396,%20goods_id:1,%20goods_name:%E8%B6%B3%E5%8A%9B%E5%81%A5%E8%80%81%E4%BA%BA%E9%9E%8B,%20goods_model_id:52,%20goods_price:188.0&pay_type=2
    }
}
